﻿@model ProjectHopur23.Models.Game
<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/Content/Site.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />
@using(Html.BeginForm())
{
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>Leikform</legend>

		@Html.HiddenFor(m => Model.ID)

		<label>Nafn leiks</label>
		@Html.EditorFor(m => Model.name)
		@Html.ValidationMessageFor(m => Model.name)

		<label>Enskt nafn leiks</label>
		@Html.EditorFor(m => Model.engName)
		@Html.ValidationMessageFor(m => Model.engName)

		<label>Skráarnafn á mynd á server</label>
		@Html.EditorFor(m => Model.imageURL)
		@Html.ValidationMessageFor(m => Model.imageURL)

		<label>Lýsing</label>
		@Html.EditorFor(m => Model.description)
		@Html.ValidationMessageFor(m => Model.description)

		<label>Lágmarksfjöldi leikmanna</label>
		@Html.EditorFor(m => Model.minPlayers)
		@Html.ValidationMessageFor(m => Model.minPlayers)

		<label>Hámarksfjöldi leikmanna</label>
		@Html.EditorFor(m => Model.maxPlayers)
		@Html.ValidationMessageFor(m => Model.maxPlayers)

		<input type="submit" value="Vista breytingar">
		<input type="button" value="Til baka" onclick="history.back(-1)" />
	</fieldset>
}